package org.jsola.hr.query;

import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.query.BaseQuery;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.List;


/**
 * @author lyh
 *
 * 参保统计页查询参数
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class SocStatisticalQuery extends BaseQuery {

    @ApiParam(value = "查询类型(1:总计;2:公司金额;3:个人金额;)")
    private Integer queryType;

    @ApiParam(value = "开始年份")
    private String startYear;

    @ApiParam(value = "截止年份")
    private String endYear;

    @ApiParam(value = "开始月份")
    private String startMonth;

    @ApiParam(value = "截至月份")
    private String endMonth;

    @ApiParam(value = "公司Id")
    private String companyId;

    @ApiParam(value = "是否跨年")
    private Boolean isAcrossYear;

    @ApiParam(value = "跨越了几年")
    private Integer step;

    @ApiParam(value = "分公司ID")
    private Integer groupId;

    @ApiParam(value = "分公司ID")
    private List<String> monthIdList;

    private Boolean groupChild = false;

    /**
     * 每页的条数
     */
    @ApiParam(value = "分页参数，每页的条数", example = "20")
    @Max(value = 1000, message = "pageSize不能大于1000")
    private Integer pageSize = 20;

    /**
     * 当前第几页
     */
    @ApiParam(value = "分页参数，第几页", example = "1")
    @Min(value = 1, message = "pageNo不能小于1")
    private Integer pageNo = 1;
}
